from selenium.webdriver.common.by import By
import unittest,time
from selenium import webdriver
from Po.Lx_827.Base import Base
class Page(Base):
    fram_loc=(By.XPATH,'//iframe[starts-with(@id,"x-URS-iframe")]')
    def fram1(self):
        self.fram(self.fram_loc)
    name_loc=(By.NAME,'email')
    def name(self):
        self.send_keys(self.name_loc,'L13012558376')
    password_loc=(By.NAME,'password')
    def password(self):
        self.send_keys(self.password_loc,'liushuai370283LS')
    denglu_loc=(By.ID,'dologin')
    def denglu(self):
        self.click(self.denglu_loc)
    shouxin_loc=(By.XPATH,'//*[@id="_mail_component_96_96"]/span[2]')
    def shouxin(self):
        self.click(self.shouxin_loc)
    you1_loc=(By.CLASS_NAME,'nui-ico.nui-ico-checkbox')
    def you1(self):
        self.click(self.you1_loc)
    shanchu_loc=(By.XPATH,'//*[@id="_mail_button_23_421"]/span')
    def shanchu(self):
        self.click(self.shanchu_loc)

    def test_126_page_02(self):
        self.get('https://126.com/')
        self.fram1()
        self.name()
        self.password()
        self.denglu()
        time.sleep(5)
        self.tuifram()
        self.shouxin()
        self.you1()
        self.shanchu()
        time.sleep(5)





